package com.yeren.czbk.basic.entity;

import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;
import org.junit.Test;

public class CreateSchema {
	//根据配置生成表结构
	@Test
	public void test() throws Exception{
		Configuration cfg=new Configuration().configure();
		SchemaExport schemaExport=new SchemaExport(cfg);
		schemaExport.create(true,true);
	}
}
